package com.pig4cloud.pigx.strategy.mapstruct;

import com.pig4cloud.pigx.strategy.entity.StrategyPositionContract;
import com.pig4cloud.pigx.strategy.vo.StrategyPositionContractVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * StrategyPositionContractStruct
 *
 * @since 2022/11/24 11:37
 */
@Mapper
public interface StrategyPositionContractStruct {

    StrategyPositionContractStruct INSTANCE = Mappers.getMapper(StrategyPositionContractStruct.class);

    /**
     * list -> VOList
     *
     * @param list list
     * @return {@link List< StrategyPositionContractVO>}
     * @since 2022/2/8
     */
    List<StrategyPositionContractVO> list2VOList(List<StrategyPositionContract> list);

}
